package com.snow.useviewdemo.function;

import android.os.Bundle;

import com.snow.common.base.BaseBasesActivity;
import com.snow.useviewdemo.R;
import com.snow.useviewdemo.html.TBSWebView;
import com.snow.useviewdemo.util.HandlerHelper;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2019-11-13
 * desc   :测试h5有关问题
 * */
public class LaunchVideoWebViewActivity extends BaseBasesActivity {
    @BindView(R.id.tbs_webview)
    TBSWebView tbsWebview;

    @Override
    protected int getContentViewId() {
        return R.layout.activity_launch_video_webview;
    }

    @Override
    protected void initView() {
        //测试h5视频状态栏问题
//        tbsWebview.loadUrl("file:///android_asset/html/test_video.html");
        //测试h5调起应用问题
        HandlerHelper.postDelay(()->{
            tbsWebview.loadUrl("file:///android_asset/html/teststart.html");
        },2000);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
    }
}
